package net.oschina.app.pages;

import android.widget.ListView;
import android.widget.TextView;

import net.oschina.app.SoloWrap;

/**
 * Created by Aaron on 2017/3/12.
 */

public class PageHome {

    private SoloWrap solo;
    ListView listView;

    public PageHome(SoloWrap solo){
        this.solo = solo;
    }

    public void initViews(){
        solo.waitForText("我的团队");
        listView = (ListView) solo.getView("net.oschina.app:id/listView");
    }

    /**
     *
     * @param row 第几行，因为第一行是从顶部的图片切换栏开始的，因此这边不用-1
     */
    public void clickListItem(int row){
        solo.clickOnView(listView.getChildAt(row));
    }

}
